using System.Web.Mvc;

namespace PCE.Mvc.Binders
{
	public class CustomerIdentityBinder : IModelBinder
	{
		public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
		{
			return int.Parse(controllerContext.HttpContext.User.Identity.Name);
		}
	}
}